import request from "./request";

import { globalApi } from "./global";
let api = globalApi

api.userinfo = function(data, isShowLoading=true){
    return request('control','user/api/info',data,isShowLoading);
}
api.getUserProfile = function(data, isShowLoading=true){
    return request('control','user/api/getUserProfile',data,isShowLoading);
}


api.caipiaoCreate = function(data, isShowLoading=true){
    return request('control','caipiao/api/create',data,isShowLoading);
}
api.caipiaoList = function(data, isShowLoading=true){
    return request('control','caipiao/api/list',data,isShowLoading);
}
api.caipiaoWincodePeriod = function(data, isShowLoading=false){
    return request('control','caipiao/api/wincode/period',data,isShowLoading);
}
api.caipiaoBuyCount = function(data, isShowLoading=false){
    return request('control','caipiao/api/buycount',data,isShowLoading);
}

api.caipiaoWincodePrize = function(data, isShowLoading=false){
    return request('control','caipiao/api/wincode/prize',data,isShowLoading);
}

module.exports = api;